import request from '@/utils/request'

// 获取热词
export function listHotWordsSearch(query) {
  return request({
    url: '/hotwords/hotwords',
    method: 'get',
    params: query
  })
}


// 新增热词
export function addHotWordsSearch(data) {
  console.log(data);
  return request({
    url: '/hotwords/hotwords',
    method: 'post',
    data: data
  })
}

// 删除热词
export function delHotWordsSearch(id) {
  return request({
    url: '/hotwords/hotwords/' + id,
    method: 'delete'
  })
}

